import service from '@/utils/request'

export const createDwsApi = (data) => {
  return service({
    url: '/dwsApi/createDwsApi',
    method: 'post',
    data
  })
}

export const deleteDwsApi = (data) => {
  return service({
    url: '/dwsApi/deleteDwsApi',
    method: 'delete',
    data
  })
}

export const deleteDwsApiByIds = (data) => {
  return service({
    url: '/dwsApi/deleteDwsApiByIds',
    method: 'delete',
    data
  })
}

export const updateDwsApi = (data) => {
  return service({
    url: '/dwsApi/updateDwsApi',
    method: 'put',
    data
  })
}

export const findDwsApi = (params) => {
  return service({
    url: '/dwsApi/findDwsApi',
    method: 'get',
    params
  })
}

export const getDwsApiList = (params) => {
  return service({
    url: '/dwsApi/getDwsApiList',
    method: 'get',
    params
  })
}

export const getAllDwsApis = (params) => {
  return service({
    url: '/dwsApi/getAllDwsApis',
    method: 'get',
    params
  })
}

export const getDwsApi = (data) => {
  return service({
    url: '/dwsApi/getDwsApi',
    method: 'post',
    data
  })
}

export const initDwsApi = () => {
  return service({
    url: '/dwsApi/initDwsApi',
    method: 'get',
  })
}
